package de.ars.client.datahandling;

import java.util.Enumeration;
import java.util.Hashtable;

public class Person
{
    private Hashtable informations;
    private Person next;
    private Person prev;
    
    public Person()
    {
        informations =  new Hashtable();
    }
    
    public void putInformation(String name, String information)
    {
        informations.put(name,information);
    }
    
    public String getInformation(String name)
    {
        Object result = informations.get( name );
        if (result != null)
            return (String)result;
        return null;
    }
    
    public void setNext(Person next)
    {
        this.next = next;
    }
    
    public void setPrev(Person prev)
    {
        this.prev = prev;
    }
    
    public Person getNext()
    {
        return this.next;
    }
    
    public Person getPrev()
    {
        return this.prev;
    }
    
    public Enumeration getInformationEnumeration()
    {
        return this.informations.keys();
    }
    
    public String getFilename()
    {
    	return this.getInformation("person.firstname") + "_" + this.getInformation("person.lastname") + ".txt";
    }
}
